﻿@*@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Manager/Views/Shared/ManagerLayout.cshtml";
}*@
 <!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="~/DirectSellJs/manager/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="~/DirectSellJs/manager/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="~/DirectSellJs/manager/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="~/DirectSellJs/manager/static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="~/DirectSellJs/manager/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="~/DirectSellJs/manager/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="~/DirectSellJs/manager/lib/laypage/1.2/laypage.js"></script>
<script src="~/DirectSellJs/jquery.unobtrusive-ajax.min.js"></script>
<style>
    html {
        background-color: #E55D40;
        color: #fff;
    }
</style>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>layer过度</title>
</head>

<body>
    <div style="line-height:200px; text-align:center;">
    <a onclick="member_show('留言','/Manager/MessageManage/Index','0','800','600')" style="cursor:pointer">点击查看</a>
    </div>
</body>
</html>
<script>
    /*用户-查看*/
    function member_show(title, url, id, w, h) {
        layer_show(title, url, w, h);
    }
    function showmsg() {
        top.location.replace = '/Manager/MessageManage/Index';
    }
    function layer_show(title, url, w, h) {
        if (title == null || title == '') {
            title = false;
        };
        if (url == null || url == '') {
            url = "404.html";
        };
        if (w == null || w == '') {
            w = 800;
        };
        if (h == null || h == '') {
            h = ($(window).height() - 50);
        };
        parent.layer.open({
            type: 2,
            area: [w + 'px', h + 'px'],
            fix: false, //不固定
            maxmin: true,
            shade: 0.4,
            title: title,
            content: url
        });
    }
    /*关闭弹出框口*/
    function layer_close() {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
</script>